package com.rmy.queue.service;

import java.util.List;
import com.rmy.queue.domain.QmsWindowBusiness;

/**
 * 窗口业务Service接口
 *
 * @author rmy
 * @date 2022-09-30
 */
public interface IQmsWindowBusinessService
{
    /**
     * 查询窗口业务
     *
     * @param windowId 窗口业务主键
     * @return 窗口业务
     */
    public QmsWindowBusiness selectQmsWindowBusinessByWindowId(Long windowId);

    /**
     * 查询窗口业务列表
     *
     * @param qmsWindowBusiness 窗口业务
     * @return 窗口业务集合
     */
    public List<QmsWindowBusiness> selectQmsWindowBusinessList(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 新增窗口业务
     *
     * @param qmsWindowBusiness 窗口业务
     * @return 结果
     */
    public int insertQmsWindowBusiness(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 修改窗口业务
     *
     * @param qmsWindowBusiness 窗口业务
     * @return 结果
     */
    public int updateQmsWindowBusiness(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 批量删除窗口业务
     *
     * @param windowIds 需要删除的窗口业务主键集合
     * @return 结果
     */
    public int deleteQmsWindowBusinessByWindowIds(Long[] windowIds);

    /**
     * 删除窗口业务信息
     *
     * @param windowId 窗口业务主键
     * @return 结果
     */
    public int deleteQmsWindowBusinessByWindowId(Long windowId);

    /**
     * 删除窗口业务信息
     *
     * @param qmsWindowBusiness 窗口业务
     * @return 结果
     */
    public int deleteByWindowIdAndBusinessId(QmsWindowBusiness qmsWindowBusiness);

    /**
     * 校验窗口和业务配置是否关联
     *
     * @param businessId 业务配置主键
     * @return 结果 1 存在关联
     */
    public String checkWindowBusinessConfigLink(Long[] businessId);
}
